<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="UTF-8">

<head>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/css/main.css">
    <style>
        body {
            /*margin-right: 500px;*/
            margin-left: -300px;
            margin-top: -60px;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

            <div class="panel panel-default">
                <div class="panel-heading">添加房屋信息
                    <div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i
                            class="glyphicon glyphicon-question-sign"></i></div>
                </div>
                <div class="panel-body">

                    <form action="/select/xiang/building" method="post">
                        <%--当前页传过来--%>
                        <input type="hidden" name="pageNum" value="${param.pageNum}">

                        <div class="form-group">
                            <label for="buildingname">房屋名称</label>
                            <input type="text"
                                   name="buildingname"
                                   class="form-control"
                                   id="buildingname"
                                   value="${b.buildingname}"
                            >
                        </div>

                        <div class="form-group">
                            <label for="buildingarea">房屋大小</label>
                            <input type="text"
                                   name="buildingarea"
                                   class="form-control"
                                   id="buildingarea"
                                   value="${b.buildingarea}"
                            >
                        </div>

                        <div class="form-group">
                            <label for="buildingdetails">详情</label>
                            <input type="text"
                                   name="buildingdetails"
                                   class="form-control"
                                   id="buildingdetails"
                                   value="${b.buildingdetails}"
                            >
                        </div>

                        <div class="form-group">
                            <label for="buildingprice">价格</label>
                            <input type="text"
                                   name="buildingprice"
                                   class="form-control"
                                   id="buildingprice"
                                   value="${b.buildingprice}"
                            >
                        </div>

                        <div class="form-group">
                            <label for="buildingadress">地址</label>
                            <input type="text"
                                   name="buildingadress"
                                   class="form-control"
                                   id="buildingadress"
                                   value="${b.buildingadress}"
                            >
                        </div>

                            <div class="form-group">
                                <label for="buildingstatus">房屋状态</label>
                                <input type="text"
                                       name="buildingstatus"
                                       class="form-control"
                                       id="buildingstatus"
                                       value="${b.buildingstatus}"
                                >
                            </div>

                            <div class="form-group">
                                <label for="buildingmold">房屋类型</label>
                                <input type="text"
                                       name="buildingmold"
                                       class="form-control"
                                       id="buildingmold"
                                       value="${b.buildingmold}"
                                >
                            </div>

                </div>

<%--                <button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i> 修改</button>--%>
<%--                <button type="reset" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 重置</button>--%>
                <button type="button" onclick="window.history.back(-1)" class="btn btn-danger"><i
                        class="glyphicon glyphicon-refresh"></i> 返回
                </button>
                </form>


            </div>
        </div>
    </div>
</div>
</div>
</div>
</div>
</body>
</html>
